.computer {
  position: relative;
  width: 1300px;
  height: 800px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin: 0 auto;

  .music-container {
    width: 950px;
    height: 615px;
    left: 50%;
    top: 69px;
    transform: translateX(-50%);
    position: absolute;
    transition: all 1s;
    background-size: cover;
    overflow: hidden;
    background-position: center;

    .music-mask {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      backdrop-filter: blur(40px);
      z-index: 1;
    }

    .music-list {
      position: absolute;
      right: 0;
      top: 50%;
      width: 30%;
      height: 73%;
      background: #fafafa;
      border-radius: 10px 0 0 10px;
      z-index: 100;
      transform: translateY(-50%);
      font-size: 11px;
      color: #283248;
      opacity: 0;
      transition: opacity .5s, width .8s;

      .music-list-title {
        font-size: 15px;
        font-weight: bold;
        position: relative;
        padding-left: 15px;
        height: 50px;
        line-height: 50px;
        border-bottom: 1px solid #eaeaea;

        .music-list-length {
          position: absolute;
          font-size: 10px;
          font-weight: normal;
        }
      }

      .music-list-container {
        overflow: auto;
        height: calc(100% - 50px);

        &::-webkit-scrollbar {
          width: 6px; /* 设置滚动条宽度 */
        }

        .music-list-item {
          padding: 10px 15px;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: space-between;
          transition: background-color .5s ease-out;
          position: relative;

          .list-item-progress {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 100%;
            transition: width 1s linear;
          }

          &:hover {
            background: #edeeef;
          }

          .music-list-item-left {
            display: flex;


            .song-information {
              display: flex;
              flex-direction: column;
              justify-content: space-evenly;

              .item-name {
                width: 150px;
                display: inline-block;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
              }

              .item-singer {
                width: 140px;
                font-size: 10px;
                color: rgba(0, 0, 0, 0.7); /* 使用RGBA颜色表示法，最后一个参数表示透明度，取值范围为0到1 */
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
              }
            }

            img {
              width: 40px;
              height: 40px;
              border-radius: 7px;
              margin-right: 10px;
              object-fit: cover;
            }
          }

          .music-list-item-right {
            color: #a8acb4;
          }
        }
      }
    }

    .iconfont {
      cursor: pointer;

    }

    .music-top {
      width: 100%;
      height: 10%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      z-index: 99;
      padding: 0 20px;

      .music-top-left {

        .icon-wangyesuoxiao {
          border-radius: 7px;
          background: rgba(255, 255, 255, 0.1);
          padding: 10px;
          color: white;
        }
      }

      .music-top-right {
        .switch-theme-container {
          .switch-theme-button {
            padding: 8px 20px;
            color: rgba(255, 255, 255, .8);
            background: rgba(255, 255, 255, 0.1);
            border-radius: 25px;
          }
        }
      }
    }

    .music-main {
      height: 80%;
      width: 100%;
      padding: 0 10%;
      position: relative;
      z-index: 99;
      display: flex;

      .music-main-left {
        width: 40%;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        position: relative;

        .stylus-container {
          position: absolute;
          left: 50%;
          top: 5%;
          width: 40px;
          height: 40px;
          background-size: cover;
          border-radius: 50%;
          z-index: 2;
        }

        .stylus {
          position: absolute;
          background-size: 100% 100%;
          left: 56%;
          top: 8%;
          transform: translateX(-50%);
          width: 160px;
          transform-origin: top left; /* 设置旋转中心为顶部中心 */
          transition: .5s linear all;
          z-index: 1;
        }

        .record-img-rotate {
          animation-play-state: running !important;
        }

        /* 定义旋转动画 */
        @keyframes rotateBackground {
          from {
            transform: rotate(0deg);
          }
          to {
            transform: rotate(360deg);
          }
        }

        .record-img {
          position: relative;
          width: 200px;
          height: 200px;
          background-size: cover;
          background-repeat: no-repeat;
          background-position: center;
          border-radius: 50%;
          animation: rotateBackground 30s linear infinite; // 设置动画样式
          animation-play-state: paused;

          .music-main-record {
            width: 135%;
            height: 135%;
            background-size: contain;
            background-repeat: no-repeat;
            position: absolute;
            transition: all 1s;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;

            &:after {
              content: '';
              position: absolute;
              width: 100%;
              height: 100%;
              left: 50%;
              top: 50%;
              transform: translate(-50%, -50%);
              border-radius: 50%;
              border: 10px solid rgba(255, 255, 255, .2);
              box-shadow: 0px 0px 2.7px rgba(0, 0, 0, 0.031),
              0px 0px 6.9px rgba(0, 0, 0, 0.044),
              0px 0px 14.2px rgba(0, 0, 0, 0.056),
              0px 0px 29.2px rgba(0, 0, 0, 0.069),
              0px 0px 80px rgba(0, 0, 0, 0.1), inset 0 0 10px 5px rgba(0, 0, 0, 1);
            }
          }
        }
      }

      .music-main-right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: white;
        width: 60%;
        align-items: flex-start;

        .music-main-song-information {
          height: 20%;
          width: 100%;
          display: flex;
          flex-direction: column;
          justify-content: flex-end;
          align-items: center;

          h3 {
            font-weight: normal;
            font-family: "宋体", serif;
          }

          .song-name {
            color: rgba(255, 255, 255, .5);
            font-size: 14px;
            margin: 12px 0;
            font-family: "宋体", serif;
          }
        }

        .music-lyric {
          height: 80%;
          width: 100%;
          overflow: hidden;
          color: rgba(255, 255, 255, .5);
          scroll-behavior: smooth;
          position: relative;

          &:after {
            content: "";
            position: absolute;
            height: 30px;
            bottom: 0;
            width: 100%;
            backdrop-filter: blur(2px);
          }


          .lyric-item-container {
            transition: all .5s;
            text-align: center;

            .lyric-item {
              height: 30px;
              line-height: 30px;
              display: inline-block;
              font-size: 12px;
              transition: all 1s;
              width: 100%;
              box-sizing: border-box;
              position: relative;
              user-select: none;

              .translation {
                top: 14px;
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                font-size: 10px;
              }
            }
          }

          &::-webkit-scrollbar {
            width: 0;
          }
        }
      }
    }

    .music-bottom {
      height: 10%;
      width: 100%;
      display: flex;
      flex-direction: row;
      align-items: center;
      color: #9fa7a9;
      padding: 0 30px;
      background: rgba(0, 0, 0, .6);
      position: relative;
      z-index: 99;

      .progress-container {
        position: absolute;
        left: 0;
        top: -5px;
        width: 100%;
        height: 5px;
        cursor: pointer;
        transition: all .5s;

        &:hover {
          height: 10px;
          top: -10px;

          .progress {
            background-color: rgba(255, 255, 255, 1);

            .dot {
              opacity: 1;
            }
          }
        }

        .progress {
          position: absolute;
          left: 0;
          height: 100%;
          top: 0;
          border-radius: 0 5px 5px 0;
          transition: width .5s linear, background-color .5s;
          background-color: rgba(255, 255, 255, .5);

          .dot {
            background: white;
            position: absolute;
            width: 15px;
            height: 15px;
            right: -5px;
            top: 50%;
            transform: translateY(-50%);
            border-radius: 50%;
            transition: opacity .5s;
            opacity: 0;
          }
        }
      }

      .music-bottom-left {
        width: 25%;

        .audio-time {
          font-size: 10px;
          margin-left: 10px;
        }
      }

      .music-bottom-main {
        width: 50%;
        display: flex;
        justify-content: center;
        align-items: center;

        .pause {
          font-size: 14px !important;
          padding: 10px;
          border-radius: 50%;
          background: rgba(255, 255, 255, 0.1);
        }

        .iconfont {
          margin: 0 10px;
          font-size: 20px;
        }
      }

      .music-bottom-right {
        width: 25%;
        display: flex;
        justify-content: flex-end;
        align-items: center;

        .volume-container {
          width: 80px;
          height: 5px;
          background-color: rgba(255, 255, 255, .2);
          cursor: pointer;
          border-radius: 25px;
          position: relative;
          box-shadow: 0px 0px 31px rgba(0, 0, 0, 0.19);

          &:hover .volume .dot {
            opacity: 1;
          }

          &:hover .volume {
            background-color: rgba(255, 255, 255, .9);
          }

          .volume {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            background-color: rgba(255, 255, 255, .5);
            transition: all .5s;
            border-radius: 25px;

            .dot {
              position: absolute;
              right: -5px;
              top: 50%;
              width: 10px;
              height: 10px;
              transform: translateY(-50%);
              border-radius: 50%;
              background-color: rgba(255, 255, 255, .9);
              transition: all .1s;
              opacity: 0;
            }
          }
        }

        .iconfont {
          margin: 0 10px;
        }
      }
    }
  }
}

.lyric-active {
  color: white;
  transform-origin: center;
  transform: scale(1.2);
}
